package com.sultan.guante.userSystem.service.impl;

import java.io.Serializable;
import java.util.List;

import com.sultan.guante.userSystem.dao.impl.BaseDAOImpl;
import com.sultan.guante.userSystem.service.BaseObjectService;

public abstract class BaseObjectServiceImpl<T, PK extends Serializable> extends BaseServiceImpl implements BaseObjectService<T, PK> {

	@Override
	public void save(T entity) {
		getEntityDao().save(entity);
		
	}

	@Override
	public void delete(T entity) {
		// TODO Auto-generated method stub
		getEntityDao().delete(entity);
		
	}

	@Override
	public void update(T entity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public T get(PK id) {
		return getEntityDao().get(id);
	}

	@Override
	public List<T> getAll() {
		// TODO Auto-generated method stub
		return getEntityDao().getAll();
	}

	

}
